#include "pch.h"
#include "UrlTableSchema.hpp"




db::TableDL::Ptr UrlTableSchema::table()
{
	db::TableDL::Attributes attributes;
	attributes << db::TableAttribute::Ptr(new db::TableAttribute(db::Attribute::Integer, "id", db::Flags::Key /*| db::Flags::AutoIncrement*/));
	attributes << db::TableAttribute::Ptr(new db::TableAttribute(db::Attribute::String, "url", db::Flags::Unique));
	return db::TableDL::Ptr(new db::TableDL("urls", "crawler_urls", attributes));
}
///////////////////////////////////////////////////////////////////////////////////////////////////
